package com.xlf.service.base.controller.client;

import com.xlf.common.core.annotation.Anonymous;
import com.xlf.common.core.pojo.mode.AjaxResult;
import com.xlf.common.core.pojo.mode.BaseController;
import com.xlf.service.base.service.ProblemTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xlf 2734029211@qq.com
 * @Date 2023/10/3 10:14
 * @Description: TODO 题库
 * @Version 1.0
 */
@RestController
@RequestMapping("/base/problemType")
public class ProblemTypeController extends BaseController {

    @Autowired
    ProblemTypeService problemTypeService;

    @Anonymous
    @GetMapping("/list")
    public AjaxResult list(){
        return success(problemTypeService.getList());
    }

}
